<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人信息卡片测试</title>
    <style>
        body {
            margin: 0;
            padding: 20px;
            background: linear-gradient(135deg, #F0FFFF 0%, #E0FFFF 100%);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        /* 用户资料卡片 */
        .profile-card {
            background: white;
            border-radius: 16px;
            margin-bottom: 20px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            margin: 0 auto;
        }

        /* 上半部分：紫色渐变背景 */
        .profile-header {
            position: relative;
            background: linear-gradient(135deg, #C77DFF 0%, #E0AAFF 100%);
            height: 160px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* 右上角盾牌图标 */
        .shield-icon {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 30px;
            height: 30px;
            background: rgba(74, 144, 226, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #4A90E2;
            font-size: 16px;
        }

        /* 头像容器 */
        .avatar-container {
            position: relative;
            margin-top: 30px;
        }

        .user-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            background: #ddd;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="35" r="15" fill="%23999"/><path d="M20 80 Q20 60 50 60 Q80 60 80 80 Z" fill="%23999"/></svg>');
            background-size: cover;
        }

        .online-indicator {
            position: absolute;
            bottom: 4px;
            right: 4px;
            width: 14px;
            height: 14px;
            background: #4CAF50;
            border-radius: 50%;
            border: 2px solid white;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
        }

        /* 下半部分：白色背景 */
        .profile-content {
            background: white;
            padding: 20px 20px 25px;
        }

        /* 用户基本信息 */
        .user-basic-info {
            text-align: center;
            margin-bottom: 20px;
        }

        .username {
            display: block;
            font-size: 24px;
            font-weight: bold;
            color: #333333;
            margin-bottom: 6px;
            letter-spacing: 1px;
        }

        .age {
            font-size: 16px;
            color: #666666;
            font-weight: 500;
        }

        /* 统计信息 */
        .stats-section {
            display: flex;
            justify-content: space-around;
            margin-bottom: 20px;
            padding: 0 20px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
        }

        .stat-number {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 4px;
            line-height: 1;
        }

        .likes-number {
            color: #E91E63;
        }

        .match-number {
            color: #9C27B0;
        }

        .stat-label {
            font-size: 14px;
            color: #999999;
            font-weight: 400;
        }

        /* 个人简介 */
        .bio-section {
            text-align: center;
            padding: 0 10px;
        }

        .bio-text {
            font-size: 14px;
            color: #666666;
            line-height: 1.6;
            letter-spacing: 0.5px;
        }
    </style>
</head>
<body>
    <div class="profile-card">
        <!-- 上半部分：紫色渐变背景 -->
        <div class="profile-header">
            <!-- 右上角盾牌图标 -->
            <div class="shield-icon">
                🛡️
            </div>
            
            <!-- 用户头像 -->
            <div class="avatar-container">
                <div class="user-avatar"></div>
                <div class="online-indicator"></div>
            </div>
        </div>
        
        <!-- 下半部分：白色背景 -->
        <div class="profile-content">
            <!-- 用户名和年龄 -->
            <div class="user-basic-info">
                <span class="username">林小雨</span>
                <span class="age">26岁</span>
            </div>
            
            <!-- 统计信息 -->
            <div class="stats-section">
                <div class="stat-item">
                    <span class="stat-number likes-number">12</span>
                    <span class="stat-label">获得喜欢</span>
                </div>
                <div class="stat-item">
                    <span class="stat-number match-number">5</span>
                    <span class="stat-label">匹配成功</span>
                </div>
            </div>
            
            <!-- 个人简介 -->
            <div class="bio-section">
                <span class="bio-text">热爱生活，喜欢旅行和摄影。希望找到一个有趣的灵魂一起探索世界。</span>
            </div>
        </div>
    </div>
</body>
</html>